import { createBrowserRouter } from "react-router-dom";
import Root from "@/layout/Root";
import Home from "@/views/Home";
import Me from "@/views/Me";

export const router = createBrowserRouter([
  {
    path: "/",
    Component: Root,
    children: [
      { index: true, Component: Home, path: "home" },
      { path: "me", Component: Me },
    ],
  },
]);
